<?php slot('sub', $sub); ?>

<div class="center">
    <div id="center_conteiner" class="clearfix">
        <div class="center_sub_conteiner">

            <div class="center_block">
                <div class="header_center_block"><span>Plans</span></div>

                <div class="pages_list">
                    <ul>
                        <li><<</li>
                        <li class='active'>1</li>
                        <li>>></li>
                    </ul>
                </div>

                <div class="users_title">
                    <div class="users_title_id">id</div>
                    <div class="users_title_title">english</div>
                    <div class="users_title_first_name">russian</div>
                    <div class="users_title_status">hebrew</div>
                    <div class="add_new_user"><a href="<?php echo url_for('addplan'); ?>">Add</a></div>
                </div>
                
                <?php
                foreach ($plans as $p) {
                    echo '<div class="user_line">' .
                    '<div class="user_line_id">' . $p->getId() . '</div>' .
                    '<div class="user_line_title">' . $p->getNameEn() . '</div>' .
                    '<div class="user_line_name">' . $p->getNameRu() . '</div>' .
                    '<div class="user_line_status">' . $p->getNameHe() . '</div>' .
                    '<div class="user_line_delete_button"><a href="' . url_for('aeditplan', array('plan_id' => $p->getId())) . '">' . 'Edit' . '</a></div>' .
                    '</div>';
                }
                ?>
                
                <div class="pages_list">
                    <ul>
                        <li><<</li>
                        <li class='active'>1</li>
                        <li>>></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
